package com.hh.demo.controller;

import com.hh.demo.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class UserController {
    @Resource
    private UserService userService;
    //用户信息录入
    @RequestMapping("/insertUser")
    @ResponseBody
    public void insertUser(String userName, String sex, Integer age, String grade, String userCard){
       userService.insertUser(userName,sex,age,grade,userCard);
    }
}
